package com.hz.dao;

import com.hz.pojo.User;
import com.hz.pojo.UserOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserOrderDao {
    /**
     * 获取所有用户订单信息
     * @return
     * @throws Exception
     */
    public abstract List<UserOrder> getAllUserOrder(@Param("order_code") String order_code,@Param("order_state") Integer order_state,@Param("pages")Integer pages,@Param("pageSize")Integer pageSize)throws Exception;

    /**
     * 获取查询后的订单总数
     * @return
     * @throws Exception
     */
    public abstract int getUserOrderCount(@Param("order_code") String order_code,@Param("order_state") Integer order_state)throws Exception;
}
